package main

import (
	"log"
	"net/http"

	_ "github.com/go-sql-driver/mysql"

	_ "gitee.com/daigd/v-blog-demo-go/config"
	"gitee.com/daigd/v-blog-demo-go/endpoint"
)

func main() {
	server := http.Server{Addr: "127.0.0.1:9090"}
	http.HandleFunc("/login", endpoint.LoginHandle)
	http.HandleFunc("/user", endpoint.UserHandle)
	http.HandleFunc("/article", endpoint.ArticleHandle)
	server.ListenAndServe()
	log.Println("v-blog-demo-go 启动成功!")
}
